﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MoetutuTranslate.Helper
{
    class ViewHelper
    {
     static    int LocalTime = TimeHelper.GetSecond();
        public static bool TimerBlock() {
            int NowTime = TimeHelper.GetSecond();

            int Num = NowTime - LocalTime;
            if (Num < 2)
            {
               
                return false;
            }
            else
            {
                LocalTime = TimeHelper.GetSecond();

                Console.WriteLine("解锁" + Num);
                return true;
            }
        }
    }
}
